<?php

namespace app\admin\validate;


class Jour extends BaseValidate
{
    protected $rule = [
        "name"           => "require|max:15|chsAlpha",
        "contents"       =>"require",
        //'email' => 'email',   chsDash::汉字、字母、数字和下划线_及破折号-
        //'phone'=>['regex'=>'/^((\+?86)|(\(\+86\)))?\d{3,4}-\d{7,8}(-\d{3,4})?$|^((\+?86)|(\(\+86\)))?1\d{10}$/'],
       // 'address' => 'max:60',
    ];

    protected $message = [
        'name.require'       => '快讯简介必须存在',
        'name.max'           => '快讯简介不能超过15个字符',
        'name.chsAlpha'      => '快讯简介只能是汉字，字母',
        'contents.require'   =>'快讯内容不能为空',
      //  'email' => '邮箱格式错误',
       // 'phone' => '用户联系方式错误',
       // 'address' => '用户地址不能超过60个字符',
    ];
}